package com.hustcad.plm.pdm.user.service.impl;


import com.hustcad.plm.pdm.user.mapper.SettingMapper;
import com.hustcad.plm.pdm.user.service.SettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class SettingServiceImpl implements SettingService {
    @Resource
    SettingMapper settingMapper;


    @Override
    public Integer add(Map<String, Object> map) {
        return settingMapper.add(map);
    }

    @Override
    public List<Map<String,Object>> list(Map<String, Object> map) {
        return settingMapper.getSettingList(map);
    }

    @Override
    public Integer edit(Map<String, Object> map) {
        return settingMapper.edit(map);
    }

    @Override
    public Integer deleteSetting(Map<String, Object> map) {
        return settingMapper.deleteSetting(map);
    }

    @Override
    public List<Map<String, Object>> logs(Map<String, Object> map) {
        return settingMapper.logs(map);
    }

    @Override
    public Integer deleteLogs(Map<String, Object> map) {
        return settingMapper.deleteLogs(map);
    }


}
